package com.zhilehuo.mapper;

import com.zhilehuo.model.po.Article;
import com.zhilehuo.model.vo.ArticleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    List<ArticleVo> selectArticles(@Param("title") String title, @Param("category") String category);

    Integer insert(Article article);

    Article selectByTitleAndCategory(Article article);

    Article selectById(Integer articleId);
}
